//
// Created by heqian on 17-8-7.
//

#include "Log.h"

namespace utils {

    Prt<Log> Log::mInterface;

    Prt<Log> &Log::get() {

        if (mInterface.isNull())
            mInterface = new Log();

        return mInterface;
    }

    void Log::setInterface(const Prt<Log> &mInterface) {
        Log::mInterface = mInterface;
    }

    template<typename T, typename...Args>
    void Log::info(const char *s, T value, Args... args) {
        Log::get()->__info(s, value, args...);
    }

    template<typename T, typename...Args>
    void Log::__info(const char *s, T value, Args... args) {

    }

    template<typename T, typename...Args>
    void Log::debug(const char *s, T value, Args... args) {
        Log::get()->__debug(s, value, args...);
    }

    template<typename T, typename...Args>
    void Log::__debug(const char *s, T value, Args... args) {

    }
}